package com.ml.mall.service.supplier;

import com.ml.mall.bean.base.ApiRestResult;
import com.ml.mall.bean.page.Page;
import com.ml.mall.bean.req.BaseBeanReq;
import com.ml.mall.bean.req.order.OrderEditReq;
import com.ml.mall.bean.req.supplier.OrderMQueryPageReq;
import com.ml.mall.bean.res.order.OrderMQueryPageRes;
import com.ml.mall.bean.res.supplier.SupplierOrderQueryOneRes;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ml.mall.entity.order.SysOrder;
import com.ml.mall.entity.supplier.SysOrderSupplier;

import java.util.List;

public interface SysOrderSupplierService extends IService<SysOrderSupplier>{

    /**
     * @description: 根据买家订单号查询买家订单
     */
    List<SysOrderSupplier> selectSupplierOidBySupOid(Long oid);

    /**
     * @description: 根据卖家订单号查询卖家订单
     * @author kyyang
     * @date 2021/5/29 22:06
     * @version 1.0
     */
    SysOrderSupplier selectSysOrderSupplierBySupOid(String supplierOid);

    /**
     * @description: 分页查询卖家订单
     * @author kyyang
     * @date 2021/5/29 21:00
     * @version 1.0
     */
    Page<OrderMQueryPageRes> sysOrderMQueryPage(OrderMQueryPageReq req);

    /**
     * @description: 修改卖家订单
     * @author kyyang
     * @date 2021/5/29 22:14
     * @version 1.0
     */
    int sysOrderSupplierEdit(OrderEditReq orderEditReq);

    /**
     * @description: 查询卖家订单详情
     * @author kyyang
     * @date 2021/5/29 22:32
     * @version 1.0
     */
    SupplierOrderQueryOneRes sysOrderQueryOne(BaseBeanReq req);


    /**
     *
     * @return
     * @author Daizh
     * @date 2021/9/23 11:46
     */
    void  createSupplierOrder(Long oid);


}
